//
//  BubbleChatCell.h
//  CustomBubbleChatView
//
//  Created by Lixiaoyong on 13-6-26.
//  Copyright (c) 2013年 Revenco. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "MyDataObject.h"

@interface BubbleChatContentHeight : NSObject

+ (CGSize)getStringLength:(NSString *)string;      //计算lable高度

@end

/*-----------------------BubbleChatView---------------------------------*/

@interface BubbleChatView : UILabel
@property (nonatomic) NSInteger locationFlag;   //1-left  2-right
@end

/*------------------------BubbleChatCell--------------------------------*/

@interface BubbleChatCell : UITableViewCell
@property (nonatomic,retain) UIImageView *headerImage;
@property (nonatomic,retain) BubbleChatView *chatView;
@property (nonatomic,retain) UIActivityIndicatorView *indicatorView;

//利用数据刷新布局
/*
 *value1:消息内容
 *value2:发送时间
 *value3:是否本人
 *value4:头像url
 */
- (void)refreshFrameWithData:(MyDataObject *)item withWidth:(CGFloat)width;

//展示旋转进度轮
- (void)showIndicatorView;

//影藏旋转进度轮
- (void)hideIndicatorView;

@end